/**
 * Copyright (c) 2018-2028, HQY 胡庆一 (215218393@qq.com).
 * <p>
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ocm.product.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ocm.product.rs.CartRS;
import com.ocm.product.vo.CartItemVO;
import com.ocm.product.vo.SkuVO;
import com.ocm.product.entity.Sku;
import com.ocm.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.HashMap;
import java.util.List;

/**
 *  服务类
 *
 * @author HQY
 * @since 2021-11-20
 */
public interface ISkuService extends BaseService<Sku> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param sku
	 * @return
	 */
	IPage<SkuVO> selectSkuPage(IPage<SkuVO> page, QueryWrapper<SkuVO> queryWrapper);

	List<SkuVO> selectSku(QueryWrapper<SkuVO> queryWrapper);

	HashMap<String, Object> selectAggregation(Long spuId);

	List<SkuVO> selectSkuVoBySpuId(Long id);

	CartRS getCartRSById(Long skuId);

	CartItemVO getCartDataBySkuId(Long skuId);
}
